package com.cug.zfanspring.service;

import com.cug.zfanspring.bean.Dial;
import com.cug.zfanspring.mapper.DialMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DialService {
    @Autowired
    DialMapper dialMapper;

    public Dial getDial(){
        Dial dial=new Dial();
        dial.setPh_table(dialMapper.getPH_table());
        dial.setAmmoniaNitrogen_table(dialMapper.getAmmoniaNitrogen_table());
        dial.setCod_table(dialMapper.getCOD_table());
        dial.setNitrogen_table(dialMapper.getNitrogen_table());
        dial.setPhosphorus_table(dialMapper.getPhosphorus_table());
        return dial;
    }
}
